﻿using ConfExpert.Datasets;
using DevExpress.XtraReports.UI;
using DevTeam;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Drawing.Printing;
using System.Linq;
 
public class xrKesimWestbrook : DevExpress.XtraReports.UI.XtraReport
{
    #region Designer generated code

    #region Members
    private DevExpress.XtraReports.UI.DetailBand Detail;
    private DevExpress.XtraReports.UI.TopMarginBand TopMargin;
    private DevExpress.XtraReports.UI.BottomMarginBand BottomMargin;
    private MyData oMyData;
    private XRTable tblDetayBaslik;
    private ReportFooterBand ReportFooter;
    private ReportHeaderBand ReportHeader;
    private XRPictureBox xrPictureBox1;
    private XRLabel x1;
    private DetailBand HeaderBand;
    private DetailReportBand Header;
    private DetailReportBand DetailReport;
    private DetailBand DetailBand;
    private XRTable xrTable3;
    private XRTableRow xrTableRow3;
    private XRTableCell x2;
    private XRTableCell x2a;
    private XRTableRow xrTableRow5;
    private XRTableCell x3;
    private XRTableCell x3a;
    private XRControlStyle xrControlStyle1;
    private XRTable xtGarni;
    private XRTableRow xrTableRow33;
    private XRTableCell xrTableCell37;
    private XRTable xtBD;
    private XRTableRow xrTableRow41;
    private XRTableCell xrTableCell206;
    private PageFooterBand PageFooter;
    private XRPageInfo xrPageInfo1;
    private XRTableRow xrTableRow40;
    private XRTableCell xrTableCell52; 
    #endregion
    private XRLabel x32;
    private XRLine xrLine1;
    private XRTableRow xrTableRow20;
    private XRTableCell x36;
    private XRTableCell x4a;
    private XRTable tbDetay2;
    private XRTableRow xrTableRow39;
    private XRTableCell xrTableCell12;
    private XRTable tbDetay5;
    private XRTableRow xrTableRow42;
    private XRTableCell xrTableCell46;
    private XRTable tbDetay1;
    private XRTableRow xrTableRow43;
    private XRTableCell xrTableCell47;
    private XRTable tbMD;
    private XRTableRow xrTableRow2;
    private XRTableCell xrTableCell14;
    private XRTable x31;
    private XRTableRow xrTableRow4;
    private XRTableCell xrTableCell6;
    private XRTableCell xrTableCell8;
    private XRTableRow xrTableRow7;
    private XRTableCell xrTableCell1;
    private XRTableCell tcTermin;
    private XRTable tbStyleDetay2;
    private XRTableRow xrTableRow8;
    private XRTableCell xrTableCell4;
    private XRTable tbStyleDetay;
    private XRTableRow xrTableRow6;
    private XRTableCell xrTableCell3;
    private XRTable tbStyle;
    private XRTableRow xrTableRow1;
    private XRTableCell xrTableCell2;
    private XRTable xrTable1;
    private XRTableRow xrTableRow9;
    private XRTableCell xrTableCell5;
    private XRTableRow xrTableRow10;
    private XRTableCell xrTableCell7;
    private XRTable xrTable2;
    private XRTableRow xrTableRow11;
    private XRTableCell tcDosyaNo;
    private XRTable tbDetay4;
    private XRTableRow xrTableRow13;
    private XRTableCell xrTableCell10;
    private XRTable tbDetay3;
    private XRTableRow xrTableRow12;
    private XRTableCell xrTableCell9;
    private XRTable tbIhracat;
    private XRTableRow xrTableRow16;
    private XRTableCell xrTableCell15;
    private XRTable tbIlik;
    private XRTableRow xrTableRow15;
    private XRTableCell xrTableCell13;
    private XRTable tbDikim;
    private XRTableRow xrTableRow14;
    private XRTableCell xrTableCell11;

    private System.ComponentModel.IContainer components = null;

    private void InitializeComponent()
    {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(xrKesimWestbrook));
            this.Detail = new DevExpress.XtraReports.UI.DetailBand();
            this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand();
            this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand();
            this.ReportFooter = new DevExpress.XtraReports.UI.ReportFooterBand();
            this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
            this.xrControlStyle1 = new DevExpress.XtraReports.UI.XRControlStyle();
            this.PageFooter = new DevExpress.XtraReports.UI.PageFooterBand();
            this.xrTable2 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow11 = new DevExpress.XtraReports.UI.XRTableRow();
            this.tcDosyaNo = new DevExpress.XtraReports.UI.XRTableCell();
            this.oMyData = new ConfExpert.Datasets.MyData();
            this.xrPageInfo1 = new DevExpress.XtraReports.UI.XRPageInfo();
            this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand();
            this.DetailBand = new DevExpress.XtraReports.UI.DetailBand();
            this.tbIhracat = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow16 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell15 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbIlik = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow15 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell13 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbDikim = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow14 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbDetay4 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow13 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbDetay3 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow12 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell9 = new DevExpress.XtraReports.UI.XRTableCell();
            this.x31 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow4 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell();
            this.x32 = new DevExpress.XtraReports.UI.XRLabel();
            this.tblDetayBaslik = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow40 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell52 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xtBD = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow41 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell206 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrLine1 = new DevExpress.XtraReports.UI.XRLine();
            this.xtGarni = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow33 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell37 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbDetay1 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow43 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell47 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbDetay5 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow42 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell46 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbDetay2 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow39 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell();
            this.Header = new DevExpress.XtraReports.UI.DetailReportBand();
            this.HeaderBand = new DevExpress.XtraReports.UI.DetailBand();
            this.xrTable1 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow9 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbStyle = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableRow10 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbStyleDetay = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow6 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbStyleDetay2 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow8 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tbMD = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell14 = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTable3 = new DevExpress.XtraReports.UI.XRTable();
            this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow();
            this.x2 = new DevExpress.XtraReports.UI.XRTableCell();
            this.x2a = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableRow5 = new DevExpress.XtraReports.UI.XRTableRow();
            this.x3 = new DevExpress.XtraReports.UI.XRTableCell();
            this.x3a = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableRow7 = new DevExpress.XtraReports.UI.XRTableRow();
            this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell();
            this.tcTermin = new DevExpress.XtraReports.UI.XRTableCell();
            this.xrTableRow20 = new DevExpress.XtraReports.UI.XRTableRow();
            this.x36 = new DevExpress.XtraReports.UI.XRTableCell();
            this.x4a = new DevExpress.XtraReports.UI.XRTableCell();
            this.x1 = new DevExpress.XtraReports.UI.XRLabel();
            this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
            ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.oMyData)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbIhracat)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbIlik)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDikim)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.x31)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tblDetayBaslik)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtBD)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtGarni)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay5)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbStyle)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbStyleDetay)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbStyleDetay2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbMD)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // Detail
            // 
            this.Detail.Dpi = 254F;
            this.Detail.Expanded = false;
            this.Detail.HeightF = 0F;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 254F);
            this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            // 
            // TopMargin
            // 
            this.TopMargin.Dpi = 254F;
            this.TopMargin.HeightF = 66F;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 254F);
            this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            // 
            // BottomMargin
            // 
            this.BottomMargin.Dpi = 254F;
            this.BottomMargin.HeightF = 30F;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 254F);
            this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            // 
            // ReportFooter
            // 
            this.ReportFooter.Dpi = 254F;
            this.ReportFooter.Expanded = false;
            this.ReportFooter.HeightF = 0F;
            this.ReportFooter.Name = "ReportFooter";
            // 
            // ReportHeader
            // 
            this.ReportHeader.Dpi = 254F;
            this.ReportHeader.HeightF = 0F;
            this.ReportHeader.Name = "ReportHeader";
            // 
            // xrControlStyle1
            // 
            this.xrControlStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
            this.xrControlStyle1.Name = "xrControlStyle1";
            this.xrControlStyle1.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 254F);
            // 
            // PageFooter
            // 
            this.PageFooter.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.xrTable2,
            this.xrPageInfo1});
            this.PageFooter.Dpi = 254F;
            this.PageFooter.HeightF = 64F;
            this.PageFooter.Name = "PageFooter";
            // 
            // xrTable2
            // 
            this.xrTable2.Dpi = 254F;
            this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(2559.208F, 0F);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow11});
            this.xrTable2.SizeF = new System.Drawing.SizeF(203.7292F, 58.42F);
            // 
            // xrTableRow11
            // 
            this.xrTableRow11.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.tcDosyaNo});
            this.xrTableRow11.Dpi = 254F;
            this.xrTableRow11.Name = "xrTableRow11";
            this.xrTableRow11.Weight = 1D;
            // 
            // tcDosyaNo
            // 
            this.tcDosyaNo.BorderColor = System.Drawing.Color.Red;
            this.tcDosyaNo.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", this.oMyData, "xWBHeader.DosyaNo")});
            this.tcDosyaNo.Dpi = 254F;
            this.tcDosyaNo.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.tcDosyaNo.ForeColor = System.Drawing.Color.Red;
            this.tcDosyaNo.Name = "tcDosyaNo";
            this.tcDosyaNo.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 0, 0, 0, 254F);
            this.tcDosyaNo.StylePriority.UseBorderColor = false;
            this.tcDosyaNo.StylePriority.UseFont = false;
            this.tcDosyaNo.StylePriority.UseForeColor = false;
            this.tcDosyaNo.StylePriority.UsePadding = false;
            this.tcDosyaNo.StylePriority.UseTextAlignment = false;
            this.tcDosyaNo.Text = "tcDosyaNo";
            this.tcDosyaNo.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.tcDosyaNo.Weight = 3D;
            // 
            // oMyData
            // 
            this.oMyData.DataSetName = "MyData";
            this.oMyData.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // xrPageInfo1
            // 
            this.xrPageInfo1.Dpi = 254F;
            this.xrPageInfo1.LocationFloat = new DevExpress.Utils.PointFloat(2762.937F, 0F);
            this.xrPageInfo1.Name = "xrPageInfo1";
            this.xrPageInfo1.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 5, 0, 0, 254F);
            this.xrPageInfo1.RunningBand = this.DetailReport;
            this.xrPageInfo1.SizeF = new System.Drawing.SizeF(119.0625F, 58.42F);
            this.xrPageInfo1.StylePriority.UseTextAlignment = false;
            this.xrPageInfo1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
            // 
            // DetailReport
            // 
            this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
            this.DetailBand});
            this.DetailReport.DataMember = "xWBHeader.FK_xWBDetail_xWBHeader_style";
            this.DetailReport.DataSource = this.oMyData;
            this.DetailReport.Dpi = 254F;
            this.DetailReport.Level = 0;
            this.DetailReport.Name = "DetailReport";
            // 
            // DetailBand
            // 
            this.DetailBand.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.tbIhracat,
            this.tbIlik,
            this.tbDikim,
            this.tbDetay4,
            this.tbDetay3,
            this.x31,
            this.x32,
            this.tblDetayBaslik,
            this.xtBD,
            this.xrLine1,
            this.xtGarni,
            this.tbDetay1,
            this.tbDetay5,
            this.tbDetay2});
            this.DetailBand.Dpi = 254F;
            this.DetailBand.HeightF = 300.8668F;
            this.DetailBand.KeepTogether = true;
            this.DetailBand.MultiColumn.ColumnCount = 2;
            this.DetailBand.Name = "DetailBand";
            // 
            // tbIhracat
            // 
            this.tbIhracat.BackColor = System.Drawing.Color.LightGray;
            this.tbIhracat.BorderColor = System.Drawing.Color.Transparent;
            this.tbIhracat.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.tbIhracat.Dpi = 254F;
            this.tbIhracat.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.tbIhracat.LocationFloat = new DevExpress.Utils.PointFloat(2287F, 32.64585F);
            this.tbIhracat.Name = "tbIhracat";
            this.tbIhracat.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow16});
            this.tbIhracat.SizeF = new System.Drawing.SizeF(564F, 55.5625F);
            this.tbIhracat.StylePriority.UseBackColor = false;
            this.tbIhracat.StylePriority.UseBorderColor = false;
            this.tbIhracat.StylePriority.UseBorders = false;
            this.tbIhracat.StylePriority.UseFont = false;
            this.tbIhracat.StylePriority.UseTextAlignment = false;
            this.tbIhracat.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            // 
            // xrTableRow16
            // 
            this.xrTableRow16.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell15});
            this.xrTableRow16.Dpi = 254F;
            this.xrTableRow16.Name = "xrTableRow16";
            this.xrTableRow16.Weight = 1D;
            // 
            // xrTableCell15
            // 
            this.xrTableCell15.BorderColor = System.Drawing.Color.DimGray;
            this.xrTableCell15.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) 
            | DevExpress.XtraPrinting.BorderSide.Right)));
            this.xrTableCell15.Dpi = 254F;
            this.xrTableCell15.Name = "xrTableCell15";
            this.xrTableCell15.StylePriority.UseBorderColor = false;
            this.xrTableCell15.StylePriority.UseBorders = false;
            this.xrTableCell15.Text = "İhracat/Paketleme";
            this.xrTableCell15.Weight = 2.9959084407160508D;
            // 
            // tbIlik
            // 
            this.tbIlik.BackColor = System.Drawing.Color.LightGray;
            this.tbIlik.BorderColor = System.Drawing.Color.Transparent;
            this.tbIlik.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.tbIlik.Dpi = 254F;
            this.tbIlik.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.tbIlik.LocationFloat = new DevExpress.Utils.PointFloat(595F, 32.64585F);
            this.tbIlik.Name = "tbIlik";
            this.tbIlik.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow15});
            this.tbIlik.SizeF = new System.Drawing.SizeF(1692F, 55.5625F);
            this.tbIlik.StylePriority.UseBackColor = false;
            this.tbIlik.StylePriority.UseBorderColor = false;
            this.tbIlik.StylePriority.UseBorders = false;
            this.tbIlik.StylePriority.UseFont = false;
            this.tbIlik.StylePriority.UseTextAlignment = false;
            this.tbIlik.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            // 
            // xrTableRow15
            // 
            this.xrTableRow15.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell13});
            this.xrTableRow15.Dpi = 254F;
            this.xrTableRow15.Name = "xrTableRow15";
            this.xrTableRow15.Weight = 1D;
            // 
            // xrTableCell13
            // 
            this.xrTableCell13.BorderColor = System.Drawing.Color.DimGray;
            this.xrTableCell13.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)));
            this.xrTableCell13.Dpi = 254F;
            this.xrTableCell13.Name = "xrTableCell13";
            this.xrTableCell13.StylePriority.UseBorderColor = false;
            this.xrTableCell13.StylePriority.UseBorders = false;
            this.xrTableCell13.Text = "İlik - Düğme";
            this.xrTableCell13.Weight = 2.9959114625736141D;
            // 
            // tbDikim
            // 
            this.tbDikim.BackColor = System.Drawing.Color.LightGray;
            this.tbDikim.BorderColor = System.Drawing.Color.Transparent;
            this.tbDikim.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.tbDikim.Dpi = 254F;
            this.tbDikim.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.tbDikim.LocationFloat = new DevExpress.Utils.PointFloat(31F, 32.64585F);
            this.tbDikim.Name = "tbDikim";
            this.tbDikim.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow14});
            this.tbDikim.SizeF = new System.Drawing.SizeF(564F, 55.5625F);
            this.tbDikim.StylePriority.UseBackColor = false;
            this.tbDikim.StylePriority.UseBorderColor = false;
            this.tbDikim.StylePriority.UseBorders = false;
            this.tbDikim.StylePriority.UseFont = false;
            this.tbDikim.StylePriority.UseTextAlignment = false;
            this.tbDikim.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            // 
            // xrTableRow14
            // 
            this.xrTableRow14.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell11});
            this.xrTableRow14.Dpi = 254F;
            this.xrTableRow14.Name = "xrTableRow14";
            this.xrTableRow14.Weight = 1D;
            // 
            // xrTableCell11
            // 
            this.xrTableCell11.BorderColor = System.Drawing.Color.DimGray;
            this.xrTableCell11.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)));
            this.xrTableCell11.Dpi = 254F;
            this.xrTableCell11.Name = "xrTableCell11";
            this.xrTableCell11.StylePriority.UseBorderColor = false;
            this.xrTableCell11.StylePriority.UseBorders = false;
            this.xrTableCell11.Text = "Dikim";
            this.xrTableCell11.Weight = 3.0039946737683088D;
            // 
            // tbDetay4
            // 
            this.tbDetay4.BorderColor = System.Drawing.Color.DimGray;
            this.tbDetay4.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
            this.tbDetay4.Dpi = 254F;
            this.tbDetay4.LocationFloat = new DevExpress.Utils.PointFloat(1723F, 88.2083F);
            this.tbDetay4.Name = "tbDetay4";
            this.tbDetay4.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow13});
            this.tbDetay4.SizeF = new System.Drawing.SizeF(564F, 63.49997F);
            this.tbDetay4.StylePriority.UseBorderColor = false;
            this.tbDetay4.StylePriority.UseBorders = false;
            // 
            // xrTableRow13
            // 
            this.xrTableRow13.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell10});
            this.xrTableRow13.Dpi = 254F;
            this.xrTableRow13.Name = "xrTableRow13";
            this.xrTableRow13.Weight = 1D;
            // 
            // xrTableCell10
            // 
            this.xrTableCell10.BorderColor = System.Drawing.Color.DimGray;
            this.xrTableCell10.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.xrTableCell10.Dpi = 254F;
            this.xrTableCell10.Name = "xrTableCell10";
            this.xrTableCell10.StylePriority.UseBorderColor = false;
            this.xrTableCell10.StylePriority.UseBorders = false;
            this.xrTableCell10.Weight = 2.9959097357971172D;
            // 
            // tbDetay3
            // 
            this.tbDetay3.BorderColor = System.Drawing.Color.DimGray;
            this.tbDetay3.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
            this.tbDetay3.Dpi = 254F;
            this.tbDetay3.LocationFloat = new DevExpress.Utils.PointFloat(1159F, 88.2083F);
            this.tbDetay3.Name = "tbDetay3";
            this.tbDetay3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow12});
            this.tbDetay3.SizeF = new System.Drawing.SizeF(564F, 63.49997F);
            this.tbDetay3.StylePriority.UseBorderColor = false;
            this.tbDetay3.StylePriority.UseBorders = false;
            // 
            // xrTableRow12
            // 
            this.xrTableRow12.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell9});
            this.xrTableRow12.Dpi = 254F;
            this.xrTableRow12.Name = "xrTableRow12";
            this.xrTableRow12.Weight = 1D;
            // 
            // xrTableCell9
            // 
            this.xrTableCell9.BorderColor = System.Drawing.Color.DimGray;
            this.xrTableCell9.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.xrTableCell9.Dpi = 254F;
            this.xrTableCell9.Name = "xrTableCell9";
            this.xrTableCell9.StylePriority.UseBorderColor = false;
            this.xrTableCell9.StylePriority.UseBorders = false;
            this.xrTableCell9.Weight = 2.9959097357971172D;
            // 
            // x31
            // 
            this.x31.Dpi = 254F;
            this.x31.LocationFloat = new DevExpress.Utils.PointFloat(31.74879F, 177.0418F);
            this.x31.Name = "x31";
            this.x31.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow4});
            this.x31.SizeF = new System.Drawing.SizeF(941F, 60.32497F);
            // 
            // xrTableRow4
            // 
            this.xrTableRow4.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell6,
            this.xrTableCell8});
            this.xrTableRow4.Dpi = 254F;
            this.xrTableRow4.Name = "xrTableRow4";
            this.xrTableRow4.Weight = 1D;
            // 
            // xrTableCell6
            // 
            this.xrTableCell6.BackColor = System.Drawing.Color.Transparent;
            this.xrTableCell6.Dpi = 254F;
            this.xrTableCell6.Font = new System.Drawing.Font("Calibri", 9F, System.Drawing.FontStyle.Bold);
            this.xrTableCell6.Name = "xrTableCell6";
            this.xrTableCell6.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 5, 0, 0, 254F);
            this.xrTableCell6.StylePriority.UseBackColor = false;
            this.xrTableCell6.StylePriority.UseFont = false;
            this.xrTableCell6.StylePriority.UsePadding = false;
            this.xrTableCell6.StylePriority.UseTextAlignment = false;
            this.xrTableCell6.Text = "POS";
            this.xrTableCell6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.xrTableCell6.Weight = 0.91588765439391651D;
            // 
            // xrTableCell8
            // 
            this.xrTableCell8.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.Pos")});
            this.xrTableCell8.Dpi = 254F;
            this.xrTableCell8.Font = new System.Drawing.Font("Calibri", 9F);
            this.xrTableCell8.Name = "xrTableCell8";
            this.xrTableCell8.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 0, 0, 0, 254F);
            this.xrTableCell8.StylePriority.UseFont = false;
            this.xrTableCell8.StylePriority.UsePadding = false;
            this.xrTableCell8.StylePriority.UseTextAlignment = false;
            this.xrTableCell8.Text = "xrTableCell8";
            this.xrTableCell8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.xrTableCell8.Weight = 4.0699093233864669D;
            // 
            // x32
            // 
            this.x32.Dpi = 254F;
            this.x32.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x32.LocationFloat = new DevExpress.Utils.PointFloat(1171.479F, 177.0416F);
            this.x32.Name = "x32";
            this.x32.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 5, 0, 0, 254F);
            this.x32.SizeF = new System.Drawing.SizeF(309.245F, 60.32498F);
            this.x32.StylePriority.UseFont = false;
            this.x32.StylePriority.UseTextAlignment = false;
            this.x32.Text = "Beden Dağılımı";
            this.x32.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft;
            // 
            // tblDetayBaslik
            // 
            this.tblDetayBaslik.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) 
            | DevExpress.XtraPrinting.BorderSide.Right) 
            | DevExpress.XtraPrinting.BorderSide.Bottom)));
            this.tblDetayBaslik.Dpi = 254F;
            this.tblDetayBaslik.KeepTogether = true;
            this.tblDetayBaslik.LocationFloat = new DevExpress.Utils.PointFloat(31.74877F, 14.27796F);
            this.tblDetayBaslik.Name = "tblDetayBaslik";
            this.tblDetayBaslik.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow40});
            this.tblDetayBaslik.SizeF = new System.Drawing.SizeF(2823.848F, 10.34214F);
            this.tblDetayBaslik.StylePriority.UseBorders = false;
            // 
            // xrTableRow40
            // 
            this.xrTableRow40.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell52});
            this.xrTableRow40.Dpi = 254F;
            this.xrTableRow40.Name = "xrTableRow40";
            this.xrTableRow40.Weight = 0.761581706631076D;
            // 
            // xrTableCell52
            // 
            this.xrTableCell52.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.xrTableCell52.Dpi = 254F;
            this.xrTableCell52.Name = "xrTableCell52";
            this.xrTableCell52.StylePriority.UseBorders = false;
            this.xrTableCell52.Weight = 3D;
            // 
            // xtBD
            // 
            this.xtBD.Dpi = 254F;
            this.xtBD.LocationFloat = new DevExpress.Utils.PointFloat(1171.479F, 237.3668F);
            this.xtBD.Name = "xtBD";
            this.xtBD.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow41});
            this.xtBD.SizeF = new System.Drawing.SizeF(762F, 63.5F);
            // 
            // xrTableRow41
            // 
            this.xrTableRow41.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell206});
            this.xrTableRow41.Dpi = 254F;
            this.xrTableRow41.Name = "xrTableRow41";
            this.xrTableRow41.Weight = 1D;
            // 
            // xrTableCell206
            // 
            this.xrTableCell206.Dpi = 254F;
            this.xrTableCell206.Name = "xrTableCell206";
            this.xrTableCell206.Weight = 3D;
            // 
            // xrLine1
            // 
            this.xrLine1.BackColor = System.Drawing.Color.Transparent;
            this.xrLine1.BorderColor = System.Drawing.Color.DarkGray;
            this.xrLine1.BorderDashStyle = DevExpress.XtraPrinting.BorderDashStyle.Solid;
            this.xrLine1.Borders = DevExpress.XtraPrinting.BorderSide.Top;
            this.xrLine1.BorderWidth = 2F;
            this.xrLine1.Dpi = 254F;
            this.xrLine1.ForeColor = System.Drawing.Color.Transparent;
            this.xrLine1.LineWidth = 0;
            this.xrLine1.LocationFloat = new DevExpress.Utils.PointFloat(31.75F, 0F);
            this.xrLine1.Name = "xrLine1";
            this.xrLine1.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1, 254F);
            this.xrLine1.SizeF = new System.Drawing.SizeF(2823.848F, 14.27795F);
            this.xrLine1.StylePriority.UseBackColor = false;
            this.xrLine1.StylePriority.UseBorderColor = false;
            this.xrLine1.StylePriority.UseBorderDashStyle = false;
            this.xrLine1.StylePriority.UseBorders = false;
            this.xrLine1.StylePriority.UseBorderWidth = false;
            this.xrLine1.StylePriority.UseForeColor = false;
            this.xrLine1.StylePriority.UsePadding = false;
            // 
            // xtGarni
            // 
            this.xtGarni.Dpi = 254F;
            this.xtGarni.LocationFloat = new DevExpress.Utils.PointFloat(31.74879F, 237.3668F);
            this.xtGarni.Name = "xtGarni";
            this.xtGarni.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow33});
            this.xtGarni.SizeF = new System.Drawing.SizeF(941F, 63.5F);
            // 
            // xrTableRow33
            // 
            this.xrTableRow33.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell37});
            this.xrTableRow33.Dpi = 254F;
            this.xrTableRow33.Name = "xrTableRow33";
            this.xrTableRow33.Weight = 1D;
            // 
            // xrTableCell37
            // 
            this.xrTableCell37.Dpi = 254F;
            this.xrTableCell37.Name = "xrTableCell37";
            this.xrTableCell37.Weight = 3D;
            // 
            // tbDetay1
            // 
            this.tbDetay1.BorderColor = System.Drawing.Color.DimGray;
            this.tbDetay1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
            this.tbDetay1.Dpi = 254F;
            this.tbDetay1.LocationFloat = new DevExpress.Utils.PointFloat(31F, 88.2083F);
            this.tbDetay1.Name = "tbDetay1";
            this.tbDetay1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow43});
            this.tbDetay1.SizeF = new System.Drawing.SizeF(564F, 63.49997F);
            this.tbDetay1.StylePriority.UseBorderColor = false;
            this.tbDetay1.StylePriority.UseBorders = false;
            // 
            // xrTableRow43
            // 
            this.xrTableRow43.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell47});
            this.xrTableRow43.Dpi = 254F;
            this.xrTableRow43.Name = "xrTableRow43";
            this.xrTableRow43.Weight = 1D;
            // 
            // xrTableCell47
            // 
            this.xrTableCell47.BorderColor = System.Drawing.Color.DimGray;
            this.xrTableCell47.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.xrTableCell47.Dpi = 254F;
            this.xrTableCell47.Name = "xrTableCell47";
            this.xrTableCell47.StylePriority.UseBorderColor = false;
            this.xrTableCell47.StylePriority.UseBorders = false;
            this.xrTableCell47.Weight = 2.9959097357971172D;
            // 
            // tbDetay5
            // 
            this.tbDetay5.BorderColor = System.Drawing.Color.DimGray;
            this.tbDetay5.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) 
            | DevExpress.XtraPrinting.BorderSide.Bottom)));
            this.tbDetay5.Dpi = 254F;
            this.tbDetay5.LocationFloat = new DevExpress.Utils.PointFloat(2287F, 88.2083F);
            this.tbDetay5.Name = "tbDetay5";
            this.tbDetay5.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow42});
            this.tbDetay5.SizeF = new System.Drawing.SizeF(564F, 63.49997F);
            this.tbDetay5.StylePriority.UseBorderColor = false;
            this.tbDetay5.StylePriority.UseBorders = false;
            // 
            // xrTableRow42
            // 
            this.xrTableRow42.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell46});
            this.xrTableRow42.Dpi = 254F;
            this.xrTableRow42.Name = "xrTableRow42";
            this.xrTableRow42.Weight = 1D;
            // 
            // xrTableCell46
            // 
            this.xrTableCell46.BorderColor = System.Drawing.Color.DimGray;
            this.xrTableCell46.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.xrTableCell46.Dpi = 254F;
            this.xrTableCell46.Name = "xrTableCell46";
            this.xrTableCell46.StylePriority.UseBorderColor = false;
            this.xrTableCell46.StylePriority.UseBorders = false;
            this.xrTableCell46.Weight = 2.9959097357971172D;
            // 
            // tbDetay2
            // 
            this.tbDetay2.BorderColor = System.Drawing.Color.DimGray;
            this.tbDetay2.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
            this.tbDetay2.Dpi = 254F;
            this.tbDetay2.LocationFloat = new DevExpress.Utils.PointFloat(595F, 88.2083F);
            this.tbDetay2.Name = "tbDetay2";
            this.tbDetay2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow39});
            this.tbDetay2.SizeF = new System.Drawing.SizeF(564F, 63.49997F);
            this.tbDetay2.StylePriority.UseBorderColor = false;
            this.tbDetay2.StylePriority.UseBorders = false;
            // 
            // xrTableRow39
            // 
            this.xrTableRow39.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell12});
            this.xrTableRow39.Dpi = 254F;
            this.xrTableRow39.Name = "xrTableRow39";
            this.xrTableRow39.Weight = 1D;
            // 
            // xrTableCell12
            // 
            this.xrTableCell12.BorderColor = System.Drawing.Color.DimGray;
            this.xrTableCell12.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.xrTableCell12.Dpi = 254F;
            this.xrTableCell12.Name = "xrTableCell12";
            this.xrTableCell12.StylePriority.UseBorderColor = false;
            this.xrTableCell12.StylePriority.UseBorders = false;
            this.xrTableCell12.Weight = 0.99863852122525743D;
            // 
            // Header
            // 
            this.Header.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
            this.HeaderBand,
            this.DetailReport});
            this.Header.DataMember = "xWBHeader";
            this.Header.DataSource = this.oMyData;
            this.Header.Dpi = 254F;
            this.Header.Level = 0;
            this.Header.Name = "Header";
            // 
            // HeaderBand
            // 
            this.HeaderBand.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.xrTable1,
            this.tbMD,
            this.xrTable3,
            this.x1,
            this.xrPictureBox1});
            this.HeaderBand.Dpi = 254F;
            this.HeaderBand.HeightF = 360.7153F;
            this.HeaderBand.MultiColumn.ColumnCount = 2;
            this.HeaderBand.Name = "HeaderBand";
            this.HeaderBand.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.HeaderBand_BeforePrint);
            // 
            // xrTable1
            // 
            this.xrTable1.Dpi = 254F;
            this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(25.00009F, 196.6736F);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow9,
            this.xrTableRow10});
            this.xrTable1.SizeF = new System.Drawing.SizeF(1255.161F, 164.0417F);
            // 
            // xrTableRow9
            // 
            this.xrTableRow9.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell5});
            this.xrTableRow9.Dpi = 254F;
            this.xrTableRow9.Name = "xrTableRow9";
            this.xrTableRow9.Weight = 1.2083331731360729D;
            // 
            // xrTableCell5
            // 
            this.xrTableCell5.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.xrTableCell5.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.tbStyle});
            this.xrTableCell5.Dpi = 254F;
            this.xrTableCell5.Name = "xrTableCell5";
            this.xrTableCell5.StylePriority.UseBorders = false;
            this.xrTableCell5.Weight = 3D;
            // 
            // tbStyle
            // 
            this.tbStyle.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.tbStyle.Dpi = 254F;
            this.tbStyle.LocationFloat = new DevExpress.Utils.PointFloat(6.74991F, 0F);
            this.tbStyle.Name = "tbStyle";
            this.tbStyle.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow1});
            this.tbStyle.SizeF = new System.Drawing.SizeF(1028.311F, 63.5F);
            this.tbStyle.StylePriority.UseBorders = false;
            // 
            // xrTableRow1
            // 
            this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell2});
            this.xrTableRow1.Dpi = 254F;
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.Weight = 1D;
            // 
            // xrTableCell2
            // 
            this.xrTableCell2.Dpi = 254F;
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.Weight = 3D;
            // 
            // xrTableRow10
            // 
            this.xrTableRow10.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell7});
            this.xrTableRow10.Dpi = 254F;
            this.xrTableRow10.Name = "xrTableRow10";
            this.xrTableRow10.Weight = 1.3749999999999998D;
            // 
            // xrTableCell7
            // 
            this.xrTableCell7.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.xrTableCell7.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.tbStyleDetay,
            this.tbStyleDetay2});
            this.xrTableCell7.Dpi = 254F;
            this.xrTableCell7.Name = "xrTableCell7";
            this.xrTableCell7.StylePriority.UseBorders = false;
            this.xrTableCell7.Weight = 3D;
            // 
            // tbStyleDetay
            // 
            this.tbStyleDetay.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.tbStyleDetay.Dpi = 254F;
            this.tbStyleDetay.LocationFloat = new DevExpress.Utils.PointFloat(6.748619F, 0F);
            this.tbStyleDetay.Name = "tbStyleDetay";
            this.tbStyleDetay.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow6});
            this.tbStyleDetay.SizeF = new System.Drawing.SizeF(1028.313F, 63.5F);
            this.tbStyleDetay.StylePriority.UseBorders = false;
            // 
            // xrTableRow6
            // 
            this.xrTableRow6.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell3});
            this.xrTableRow6.Dpi = 254F;
            this.xrTableRow6.Name = "xrTableRow6";
            this.xrTableRow6.Weight = 1D;
            // 
            // xrTableCell3
            // 
            this.xrTableCell3.Dpi = 254F;
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.Weight = 3D;
            // 
            // tbStyleDetay2
            // 
            this.tbStyleDetay2.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.tbStyleDetay2.Dpi = 254F;
            this.tbStyleDetay2.LocationFloat = new DevExpress.Utils.PointFloat(1035.061F, 0F);
            this.tbStyleDetay2.Name = "tbStyleDetay2";
            this.tbStyleDetay2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow8});
            this.tbStyleDetay2.SizeF = new System.Drawing.SizeF(220.0997F, 63.5F);
            this.tbStyleDetay2.StylePriority.UseBorders = false;
            // 
            // xrTableRow8
            // 
            this.xrTableRow8.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell4});
            this.xrTableRow8.Dpi = 254F;
            this.xrTableRow8.Name = "xrTableRow8";
            this.xrTableRow8.Weight = 1D;
            // 
            // xrTableCell4
            // 
            this.xrTableCell4.Dpi = 254F;
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.Weight = 3D;
            // 
            // tbMD
            // 
            this.tbMD.Dpi = 254F;
            this.tbMD.LocationFloat = new DevExpress.Utils.PointFloat(1290.744F, 196.6736F);
            this.tbMD.Name = "tbMD";
            this.tbMD.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow2});
            this.tbMD.SizeF = new System.Drawing.SizeF(1556.172F, 63.49997F);
            // 
            // xrTableRow2
            // 
            this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell14});
            this.xrTableRow2.Dpi = 254F;
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1D;
            // 
            // xrTableCell14
            // 
            this.xrTableCell14.Dpi = 254F;
            this.xrTableCell14.Name = "xrTableCell14";
            this.xrTableCell14.Weight = 3D;
            // 
            // xrTable3
            // 
            this.xrTable3.BorderColor = System.Drawing.Color.DimGray;
            this.xrTable3.Borders = DevExpress.XtraPrinting.BorderSide.None;
            this.xrTable3.Dpi = 254F;
            this.xrTable3.KeepTogether = true;
            this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(2286F, 2.645833F);
            this.xrTable3.Name = "xrTable3";
            this.xrTable3.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 3, 10, 254F);
            this.xrTable3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
            this.xrTableRow3,
            this.xrTableRow5,
            this.xrTableRow7,
            this.xrTableRow20});
            this.xrTable3.SizeF = new System.Drawing.SizeF(560.9163F, 194.0277F);
            this.xrTable3.StylePriority.UseBorderColor = false;
            this.xrTable3.StylePriority.UseBorders = false;
            this.xrTable3.StylePriority.UsePadding = false;
            // 
            // xrTableRow3
            // 
            this.xrTableRow3.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.x2,
            this.x2a});
            this.xrTableRow3.Dpi = 254F;
            this.xrTableRow3.Name = "xrTableRow3";
            this.xrTableRow3.Weight = 1D;
            // 
            // x2
            // 
            this.x2.Dpi = 254F;
            this.x2.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x2.Name = "x2";
            this.x2.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 9, 3, 3, 254F);
            this.x2.StylePriority.UseFont = false;
            this.x2.StylePriority.UsePadding = false;
            this.x2.StylePriority.UseTextAlignment = false;
            this.x2.Text = "Tarih";
            this.x2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
            this.x2.Weight = 1.1799995913085277D;
            // 
            // x2a
            // 
            this.x2a.Dpi = 254F;
            this.x2a.Name = "x2a";
            this.x2a.StylePriority.UseTextAlignment = false;
            this.x2a.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.x2a.Weight = 2D;
            // 
            // xrTableRow5
            // 
            this.xrTableRow5.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.x3,
            this.x3a});
            this.xrTableRow5.Dpi = 254F;
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.Weight = 1D;
            // 
            // x3
            // 
            this.x3.Dpi = 254F;
            this.x3.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x3.Name = "x3";
            this.x3.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 9, 3, 3, 254F);
            this.x3.StylePriority.UseFont = false;
            this.x3.StylePriority.UsePadding = false;
            this.x3.StylePriority.UseTextAlignment = false;
            this.x3.Text = "DosyaNo";
            this.x3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
            this.x3.Weight = 1.1799995913085277D;
            // 
            // x3a
            // 
            this.x3a.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xWBHeader.DosyaNo")});
            this.x3a.Dpi = 254F;
            this.x3a.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x3a.ForeColor = System.Drawing.Color.Red;
            this.x3a.Name = "x3a";
            this.x3a.StylePriority.UseFont = false;
            this.x3a.StylePriority.UseForeColor = false;
            this.x3a.StylePriority.UseTextAlignment = false;
            this.x3a.Text = "x3a";
            this.x3a.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.x3a.Weight = 2D;
            // 
            // xrTableRow7
            // 
            this.xrTableRow7.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.xrTableCell1,
            this.tcTermin});
            this.xrTableRow7.Dpi = 254F;
            this.xrTableRow7.Name = "xrTableRow7";
            this.xrTableRow7.Weight = 1D;
            // 
            // xrTableCell1
            // 
            this.xrTableCell1.Dpi = 254F;
            this.xrTableCell1.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.StylePriority.UseFont = false;
            this.xrTableCell1.StylePriority.UseTextAlignment = false;
            this.xrTableCell1.Text = "Termin Tarihi";
            this.xrTableCell1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
            this.xrTableCell1.Weight = 1.1799995913085277D;
            // 
            // tcTermin
            // 
            this.tcTermin.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xWBHeader.Termin", "{0:dd.MM.yyyy}")});
            this.tcTermin.Dpi = 254F;
            this.tcTermin.Name = "tcTermin";
            this.tcTermin.Weight = 2D;
            // 
            // xrTableRow20
            // 
            this.xrTableRow20.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
            this.x36,
            this.x4a});
            this.xrTableRow20.Dpi = 254F;
            this.xrTableRow20.Name = "xrTableRow20";
            this.xrTableRow20.Weight = 1D;
            // 
            // x36
            // 
            this.x36.Dpi = 254F;
            this.x36.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold);
            this.x36.Name = "x36";
            this.x36.StylePriority.UseFont = false;
            this.x36.StylePriority.UseTextAlignment = false;
            this.x36.Text = "Atölye";
            this.x36.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
            this.x36.Weight = 1.1799995913085277D;
            // 
            // x4a
            // 
            this.x4a.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xWBHeader.Atelye")});
            this.x4a.Dpi = 254F;
            this.x4a.Name = "x4a";
            this.x4a.StylePriority.UseTextAlignment = false;
            this.x4a.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            this.x4a.Weight = 2D;
            // 
            // x1
            // 
            this.x1.Dpi = 254F;
            this.x1.Font = new System.Drawing.Font("Calibri", 26F, System.Drawing.FontStyle.Bold);
            this.x1.LocationFloat = new DevExpress.Utils.PointFloat(690.5625F, 26F);
            this.x1.Name = "x1";
            this.x1.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 5, 0, 0, 254F);
            this.x1.SizeF = new System.Drawing.SizeF(1510.242F, 103.1875F);
            this.x1.StylePriority.UseFont = false;
            this.x1.StylePriority.UseTextAlignment = false;
            this.x1.Text = "Kesim Föyü";
            this.x1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
            // 
            // xrPictureBox1
            // 
            this.xrPictureBox1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Bookmark", null, "xKF_Header.ModelNo")});
            this.xrPictureBox1.Dpi = 254F;
            this.xrPictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox1.Image")));
            this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
            this.xrPictureBox1.Name = "xrPictureBox1";
            this.xrPictureBox1.SizeF = new System.Drawing.SizeF(493.1834F, 129.6458F);
            this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.StretchImage;
            // 
            // xrKesimWestbrook
            // 
            this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
            this.Detail,
            this.TopMargin,
            this.BottomMargin,
            this.ReportFooter,
            this.ReportHeader,
            this.Header,
            this.PageFooter});
            this.Bookmark = "ModelNo";
            this.Dpi = 254F;
            this.Font = new System.Drawing.Font("Calibri", 9.75F);
            this.Landscape = true;
            this.Margins = new System.Drawing.Printing.Margins(41, 41, 66, 30);
            this.PageHeight = 2100;
            this.PageWidth = 2970;
            this.PaperKind = System.Drawing.Printing.PaperKind.A4;
            this.ReportUnit = DevExpress.XtraReports.UI.ReportUnit.TenthsOfAMillimeter;
            this.SnapGridSize = 31.75F;
            this.StyleSheet.AddRange(new DevExpress.XtraReports.UI.XRControlStyle[] {
            this.xrControlStyle1});
            this.Version = "15.1";
            this.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.xrKesim_BeforePrint);
            ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.oMyData)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbIhracat)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbIlik)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDikim)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.x31)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tblDetayBaslik)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtBD)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.xtGarni)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay5)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbDetay2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbStyle)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbStyleDetay)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbStyleDetay2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tbMD)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

    }

    protected override void Dispose(bool disposing)
    {
        if (disposing && (components != null))
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    } 
    #endregion

    public xrKesimWestbrook()
    {
        InitializeComponent();      
    }

    
    public xrKesimWestbrook(string _idx, string spNAme, bool eng=false) 
        : this()
    {
        idx = _idx;
        SpName = spNAme;
        Eng = eng || spNAme.EndsWith("Eng");

        if (eng)
        {
            colCaptions = "ORDER;CUTTED;SHIPPED;1ST QUALITY;2ND QUALITY;MISSING".Split(';');
            x2.Text = "Date";
            x3.Text = "File";
            xrTableCell1.Text = "ETD";
            x32.Text = "Breakdown";
            x36.Text = "Factory";
        }
        else
        {
            colCaptions = "SİPARİŞ;KESİLEN;YÜKLENEN;SAĞLAM;DEFOLU;EKSİK".Split(';');
        }

        this.ShowPrintMarginsWarning = false;
    }

    bool Eng = false;
    public string idx,SpName;    
    public string ModelCorpo;
    DataTable dtDetail = null;
    int BDWidth = 0;
    string[] colCaptions = null;

    void cell_BeforePrint(object sender, PrintEventArgs e)
    {
        Graphics gr = Graphics.FromHwnd(IntPtr.Zero);
        gr.PageUnit = GraphicsUnit.Millimeter;
        //int factor = 10;

        XRLabel label = (XRLabel)sender;

        float stringWidth = gr.MeasureString(label.Text, label.Font).Width;
        float labelWidth = label.WidthF;

        float newSize = 10.25f;
        /*
        if ( labelWidth < stringWidth * factor)
            newSize = label.Font.Size * label.Width / stringWidth / factor;
        else
            newSize = 10.5f;
        */
        label.Font = new Font(this.Font.FontFamily, newSize);
        gr.Dispose();
    }

    void cell_BeforePrint2(object sender, PrintEventArgs e)
    {
        Graphics gr = Graphics.FromHwnd(IntPtr.Zero);
        gr.PageUnit = GraphicsUnit.Millimeter;
        int factor = 10;

        XRLabel label = (XRLabel)sender;

        float newSize = 8F;
        label.Font = new Font("Calibri", newSize);

        float stringWidth = gr.MeasureString(label.Text, label.Font).Width;
        float labelWidth = label.WidthF;


        if (labelWidth < stringWidth * factor)
            newSize = label.Font.Size * label.Width / stringWidth / factor;

        label.Font = new Font("Calibri", newSize);
        gr.Dispose();
    }

    float CodeFontSize = 8F;
    void cell_BeforePrint3(object sender, PrintEventArgs e)
    {
        Graphics gr = Graphics.FromHwnd(IntPtr.Zero);
        gr.PageUnit = GraphicsUnit.Millimeter;
        int factor = 10;

        XRLabel label = (XRLabel)sender;

        float newSize = 8F;
        label.Font = new Font("Calibri", newSize, FontStyle.Bold);

        float stringWidth = gr.MeasureString(label.Text, label.Font).Width;
        float labelWidth = label.WidthF;


        if (labelWidth < stringWidth * factor)
            newSize = label.Font.Size * label.Width / stringWidth / factor;

        label.Font = new Font("Calibri", newSize, FontStyle.Bold);
        gr.Dispose();
    }

    void cell_BeforePrint4(object sender, PrintEventArgs e)
    {
        Graphics gr = Graphics.FromHwnd(IntPtr.Zero);
        gr.PageUnit = GraphicsUnit.Millimeter;

        XRLabel label = (XRLabel)sender;

        label.Font = new Font(this.Font.FontFamily, CodeFontSize, FontStyle.Bold);
        gr.Dispose();
    }

    private void xrKesim_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
    {
        this.PaperKind = PaperKind.A4;
        this.Landscape = true;
        DataSet ds = Session.DataManager.ExecuteDataSet(SpName, idx);

        x2a.Text = DateTime.Now.ToString("dd.MM.yyyy hh:mm");

        oMyData.Clear();
        oMyData.EnforceConstraints = false;
        oMyData.xWBHeader.Merge(ds.Tables[0]);
        oMyData.xWBDetail.Merge(ds.Tables[1]);
        if (ds.Tables.Count>2)
        {
            oMyData.Merge(ds.Tables[2]);
            oMyData.Merge(ds.Tables[3]);
            oMyData.Merge(ds.Tables[4]);
        }

        if (!SpName.Contains("GetOrdersFoy"))
        {
            xrTableCell6.Text = "Tela Rengi";
        }

        oMyData.xWBDetail.Columns.Add("Top0", typeof(decimal), "BM0*Top");
        oMyData.xWBDetail.Columns.Add("Top1", typeof(decimal), "BM1*Top");
        oMyData.xWBDetail.Columns.Add("Top2", typeof(decimal), "BM2*Top");
        oMyData.xWBDetail.Columns.Add("Top3", typeof(decimal), "BM3*Top");
        oMyData.xWBDetail.Columns.Add("Top4", typeof(decimal), "BM4*Top");
        oMyData.xWBDetail.Columns.Add("Top5", typeof(decimal), "BM5*Top");
        oMyData.xWBDetail.Columns.Add("Top6", typeof(decimal), "BM6*Top");

        List<XRTable> tables = new List<XRTable>();
        tables.AddRange(new XRTable[] {
            /*xtA1, xtA2, xtA3, xtA4, xtGarni,*/ xtBD
        });

        foreach (XRTable t in tables)
            foreach (XRTableRow r in t.Rows)
                foreach (XRTableCell cell in r)
                {
                    cell.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2);
                    cell.BeforePrint += new PrintEventHandler(cell_BeforePrint);
                    cell.WordWrap = false;
                }
    }
        

    private void HeaderBand_BeforePrint(object sender, PrintEventArgs e)
    {
        DataRowView dv = (DataRowView)HeaderBand.Report.GetCurrentRow();
        
        int GarniAdedi = (int)dv.Row["GarniAdedi"];

        string model = dv.Row["StyleName"].ToString();

        CreateStyleTable("sd_", 140, 374, "tbStyleDetay");

        CreateStyleTable("s2_", 120, 120, "tbStyleDetay2");

        CreateStyleTable("st_", 211, 611, "tbStyle");

        CreateMDTable();


        CreateDetailTable();
        
        CreateBDTable(model);

        CreateGarniTable(GarniAdedi);
    }
    private void CreateStyleTable(string str,float tcWidth1,float tcWidth2,string tableName)
    {
        string strStyle = "";
        foreach (DataColumn dc in oMyData.xWBHeader.Columns)
        {
            string activeColName = dc.ColumnName;
            if (activeColName.StartsWith(str))
            {
                if (oMyData.xWBHeader.Select("ISNULL([" + activeColName + "],'')<>''").Length > 0)
                {
                    strStyle += activeColName + ";";
                }
            }
        }

        foreach (string colName in strStyle.Split(";".ToCharArray(), StringSplitOptions.RemoveEmptyEntries))
        {
            XRTableRow tr = new XRTableRow();

            XRTableCell tcBaslik = new XRTableCell();
            XRTableCell tcDetay = new XRTableCell();

            tcBaslik.Font = new System.Drawing.Font("Calibri", 8F, System.Drawing.FontStyle.Bold);
            tcBaslik.BackColor = System.Drawing.Color.LightGray;
            //tcBaslik.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 11, 5, 5, 254F);
            tcBaslik.Text = colName.Substring(3, colName.Length - 3);
            tcBaslik.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            tcBaslik.WidthF = tcWidth1;

            tcDetay.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xWBHeader."+colName)});
            tcDetay.Font = new System.Drawing.Font("Calibri", 8F);
            tcDetay.Padding = new DevExpress.XtraPrinting.PaddingInfo(6, 3, 3, 3, 254F);
            tcDetay.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            tcDetay.WidthF = tcWidth2;

            tr.Cells.AddRange(new XRTableCell[] { tcBaslik, tcDetay });
            tbStyle.Rows.Add(tr);
            ((XRTable)this.FindControl(tableName, false)).BorderColor = System.Drawing.Color.DimGray;
            ((XRTable)this.FindControl(tableName, false)).Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
            | DevExpress.XtraPrinting.BorderSide.Right)
            | DevExpress.XtraPrinting.BorderSide.Bottom)));
            ((XRTable)this.FindControl(tableName, false)).Rows.Add(tr);
        }
    }
    

    private void CreateMDTable()
    {
        string strModelDetay = "";
        foreach (DataColumn dc in oMyData.xWBHeader.Columns)
        {
            string activeColName = dc.ColumnName;
            if (activeColName.StartsWith("md"))
            {
                if (oMyData.xWBHeader.Select("ISNULL(" + activeColName + ",'')<>''").Length > 0)
                {
                    strModelDetay += activeColName + ";";
                }
            }
        }
        foreach (string colName in strModelDetay.Split(";".ToCharArray(), StringSplitOptions.RemoveEmptyEntries))
        {
            XRTableRow tr = new XRTableRow();

            XRTableCell tcBaslik = new XRTableCell();
            XRTableCell tcDetay = new XRTableCell();
          
            tcBaslik.Font = new System.Drawing.Font("Calibri", 8F, System.Drawing.FontStyle.Bold);
            tcBaslik.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 11, 5, 5, 254F);
            tcBaslik.Text = colName.Substring(2, colName.Length - 2);
            tcBaslik.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
            tcBaslik.WidthF = 294F;

            tcDetay.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xWBHeader."+colName)});
            tcDetay.Font = new System.Drawing.Font("Calibri", 8F);
            tcDetay.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 5, 5, 5, 254F);
            tcDetay.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            tcDetay.WidthF = 1575.12F;

            tr.Cells.AddRange(new XRTableCell[] { tcBaslik, tcDetay });
            tbMD.Rows.Add(tr);

        }
    }

    private void CreateDetailTable()
    {
        string strModelDetay = "";
        foreach (DataColumn dc in oMyData.xWBDetail.Columns)
        {
            string activeColName = dc.ColumnName;
            if (activeColName.StartsWith("detail"))
            {
                if (oMyData.xWBDetail.Select("ISNULL([" + activeColName + "],'')<>''").Length > 0)
                {
                    strModelDetay += activeColName + ",";
                }
            }
        }

        string strdetay = "'" + strModelDetay.Replace(",", "','").RemoveIfEndsWith(",'").Replace("detail","");
        DataRow[] drBants = oMyData.Tables["Table4"].Select("Baslik in (" + strdetay + ")");
        int FoySatirSayi = 0;


        List<XRTable> listBants = new List<XRTable>();
        int tbWidth = 563;
        if (drBants.Length>0)
        {
            DataTable dtDistinctBants = drBants.CopyToDataTable().DefaultView.ToTable(true, "Bant");
            DataTable dtBants = drBants.CopyToDataTable();

            DataRow[] drIlik = dtDistinctBants.Select("Bant in (2,3,4)");
            if (drIlik.Length < 3)
            {
                tbWidth = 2820 / (drIlik.Length + 2);

                listBants.Add(tbDetay5);
                listBants.Add(tbDetay1);

                tbDetay1.WidthF = tbDetay5.WidthF = tbIhracat.WidthF = tbDikim.WidthF = tbWidth;
                tbIlik.WidthF = tbWidth * drIlik.Length;

                tbIlik.LocationF = new PointF(tbDikim.LocationF.X + tbWidth, tbIlik.LocationF.Y);
                tbIhracat.LocationF = new PointF(tbIlik.LocationF.X + tbIlik.WidthF, tbIhracat.LocationF.Y);
                tbDetay5.LocationF = new PointF(tbIhracat.LocationF.X, tbDetay5.LocationF.Y);

                int loctbDetay = 31;
                if (dtDistinctBants.Select("Bant in (2)").Length == 0) tbDetay2.Dispose(); else { loctbDetay += tbWidth; tbDetay2.WidthF = tbWidth; tbDetay2.LocationF = new PointF(loctbDetay, tbDetay2.LocationF.Y); listBants.Add(tbDetay2); }
                if (dtDistinctBants.Select("Bant in (3)").Length == 0) tbDetay3.Dispose(); else { loctbDetay += tbWidth; tbDetay3.WidthF = tbWidth; tbDetay3.LocationF = new PointF(loctbDetay, tbDetay3.LocationF.Y); listBants.Add(tbDetay3); }
                if (dtDistinctBants.Select("Bant in (4)").Length == 0) tbDetay4.Dispose(); else { loctbDetay += tbWidth; tbDetay4.WidthF = tbWidth; tbDetay4.LocationF = new PointF(loctbDetay, tbDetay4.LocationF.Y); listBants.Add(tbDetay4); }

            }
            else
                listBants.AddRange(new XRTable[] {tbDetay1, tbDetay2, tbDetay3, tbDetay4, tbDetay5});

            DataTable dt = new DataTable();
            dt.Columns.Add("Bant");
            dt.Columns.Add("Adet",typeof(int));


            var qrBantAdet = from item in dtBants.AsEnumerable()
                             group item by new { Bant = item.Field<int>("Bant") }
                                 into grp
                                 select new
                                 {
                                     Bant = grp.Key.Bant,
                                     Adet = grp.Count(),
                                 };

            foreach (var item in qrBantAdet)
                dt.Rows.Add(item.Bant, item.Adet);

            FoySatirSayi = dt.Compute("Max(Adet)","").ToInt();
        }


        string[] Fields = strModelDetay.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);

        //int mod ;
        //if (Fields.Length % 3 == 0)
        //    mod = Fields.Length / 3 ;
        //else
        //    mod = Fields.Length / 3 + 1;
        //int tblIndex=1;


        for (int i = 0; i < Fields.Length; i++)
        {
            string colName = Fields[i];

            DataRow[] drCaptionBant = oMyData.Tables["Table4"].Select("Baslik='" + colName.Replace("detail", "") + "'");

            if (drCaptionBant.Length > 0)
            {
                XRTableRow tr = new XRTableRow();
                tr.HeightF = 65;

                XRTableCell tcBaslik = new XRTableCell();
                XRTableCell tcDetay = new XRTableCell();

                tcBaslik.BackColor = System.Drawing.Color.Gainsboro;
                tcBaslik.BorderColor = System.Drawing.Color.White;
                tcBaslik.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
                | DevExpress.XtraPrinting.BorderSide.Bottom)));
                tcBaslik.Font = new System.Drawing.Font("Calibri", 8F, System.Drawing.FontStyle.Bold);
                tcBaslik.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
                tcBaslik.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1);
                tcBaslik.Text = colName.Substring(6, colName.Length - 6);
                tcBaslik.WidthF = (float)(tbWidth * 0.38);
                tcBaslik.BeforePrint += cell_BeforePrint3;

                tcDetay.BorderColor = System.Drawing.Color.Gainsboro;
                tcDetay.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom | DevExpress.XtraPrinting.BorderSide.Right)));
                tcDetay.Font = new System.Drawing.Font("Calibri", 8F);
                tcDetay.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
                tcDetay.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1);
                tcDetay.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style."+colName)});
                tcDetay.WidthF = (float)(tbWidth * 0.62);
                //if (colName != "detailTelaRenk" && colName != "detailKarışım")
                //    tcDetay.BeforePrint += cell_BeforePrint2;

                if (SpName == "GetGenericFoy")
                {
                    if (oMyData.Tables["Table3"].Select("CaptionTr='" + colName.Replace("detail", "") + "'").Length > 0)
                    {
                        tcDetay.BackColor = Color.LightYellow;
                        tcDetay.ForeColor = Color.Red;
                        tcDetay.Font = new System.Drawing.Font("Calibri", 8F, System.Drawing.FontStyle.Bold);
                    }
                }
                else
                    if (colName == "detailTelaRenk" || colName == "detailStyleNo" || colName == "detailColour" || colName == "detailDescription" || colName.Contains("Kontrast") || colName.Contains("Article") || colName.Contains("Order") || colName.Contains("KumasYuzu"))
                    {
                        tcDetay.BackColor = Color.LightYellow;
                        tcDetay.ForeColor = Color.Red;
                        tcDetay.Font = new System.Drawing.Font("Calibri", 8F, System.Drawing.FontStyle.Bold);
                    }

                tr.Cells.AddRange(new XRTableCell[] { tcBaslik, tcDetay });

                //if (i%mod==0)
                //{
                //    tblIndex = i / mod + 1;
                //}

                ((XRTable)this.FindControl("tbDetay" + drCaptionBant[0]["Bant"].ToString(), false)).Rows.Add(tr);     
            }        
        }

        foreach (XRTable tbl in listBants)
        {
            for (int i = tbl.Rows.Count; i <= FoySatirSayi; i++)
            {
                tbl.BeginInit();

                XRTableRow tr = new XRTableRow();
                tr.HeightF = 65F;

                XRTableCell tcBaslik = new XRTableCell();
                XRTableCell tcDetay = new XRTableCell();

                tcBaslik.BackColor = System.Drawing.Color.Gainsboro;
                tcBaslik.BorderColor = System.Drawing.Color.White;
                tcBaslik.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
                | DevExpress.XtraPrinting.BorderSide.Bottom)));
                tcBaslik.Font = new System.Drawing.Font("Calibri", 8F, System.Drawing.FontStyle.Bold);
                tcBaslik.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
                tcBaslik.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1);
                tcBaslik.Text = "";
                tcBaslik.WidthF = 215;

                tcDetay.BorderColor = System.Drawing.Color.Gainsboro;
                tcDetay.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom | DevExpress.XtraPrinting.BorderSide.Right)));
                tcDetay.Font = new System.Drawing.Font("Calibri", 8F);
                tcDetay.ForeColor = Color.White;
                tcDetay.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
                tcDetay.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1);
                tcDetay.Text = "Bos";
                tcDetay.WidthF = 348;

                tr.Cells.AddRange(new XRTableCell[] { tcBaslik, tcDetay });
                tbl.Rows.Add(tr);

                tbl.EndInit();
            }
        }
    }

    private bool IsExistYabanciEtiket(DataTable dt)
    {
        bool IsyabanciEtiket = false;

        for (int i = 0; i < dt.Columns.Count; i++)
        {
            string activeColName = dt.Columns[i].ColumnName;

            if (activeColName.StartsWith("ilkAyrim"))
            {
                activeColName = "[" + dt.Columns[i].ColumnName + "]";
                if (dt.Select("ISNULL(" + activeColName + ",0)<>0").Length != 0)
                {
                    IsyabanciEtiket = true;
                    break;
                }
            }
        }
        return IsyabanciEtiket;
    }

    private DataTable RemoveUnusedBDCols(DataTable dt)
    {
        string colNames = "";

        for (int i = 0; i < dt.Columns.Count; i++)
        {
            string activeColName = dt.Columns[i].ColumnName;


            if (activeColName.StartsWith("x"))
            {
                activeColName = "[" + dt.Columns[i].ColumnName + "]";
                if (dt.Select("ISNULL(" + activeColName + ",0)<>0").Length == 0)
                {
                    colNames += dt.Columns[i].ColumnName + ";";
                }
                //else
                //    break;
            }
            else
                colNames += dt.Columns[i].ColumnName + ";";
        }

        //for (int i = dt.Columns.Count - 1; i > 0; i--)
        //{
        //    string activeColName = dt.Columns[i].ColumnName;
        //    if (activeColName.StartsWith("x"))
        //    {
        //        activeColName = "[" + dt.Columns[i].ColumnName + "]";
        //        //Int32 sum = Convert.ToInt32(dt.Compute(string.Format("sum({0})", activeColName), ""));
        //        //if (sum == 0)
        //        if (dt.Select("ISNULL(" + activeColName + ",0)<>0").Length == 0)
        //        {
        //            colNames += dt.Columns[i].ColumnName + ";";
        //        }
        //        else
        //            break;
        //    }
        //    else
        //        colNames += dt.Columns[i].ColumnName + ";";
        //}
        foreach (string colName in colNames.Split(";".ToCharArray(), StringSplitOptions.RemoveEmptyEntries))
        {
            dt.Columns.Remove(colName);
        }

        return dt;

    }

    private void CreateBDTable(string model)
    {
        DataRow[] drs = oMyData.xWBDetail.Select("Style ='" + model + "'");

        dtDetail = RemoveUnusedBDCols(drs.CopyToDataTable());
        xtBD.BeginInit();


        int cellWidth = dtDetail.Columns[0].ColumnName.Length * 20 < 90 ? 90 : 120;
        BDWidth = dtDetail.Columns.Count * cellWidth + 270 + 50;
        
        xtBD.WidthF = BDWidth ;
        xtBD.LocationF = new PointF(tblDetayBaslik.LocationF.X + tblDetayBaslik.WidthF - xtBD.WidthF , xtGarni.LocationF.Y);

        x32.LocationF = new PointF(xtBD.LocationF.X, x31.LocationF.Y);

        xtBD.Rows.Clear();
        
        xtBD.Borders = DevExpress.XtraPrinting.BorderSide.All;
        XRTableRow tr;

        tr = new XRTableRow();

        XRTableCell tc = new XRTableCell();
        tc.Text = "Asorti";
        tc.WidthF = 270;
        tc.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 3, 0, 0);
        tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
        tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
        tc.BackColor = Color.LightGray;
        //tc.Angle = 90;

        tr.Cells.Add(tc);
       
        for (int i = 0; i < dtDetail.Columns.Count+1; i++)
        {
            tc = new XRTableCell();
            tc.WidthF = cellWidth;
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            if (i == dtDetail.Columns.Count)
            {
                tc.Text = "Top.";
                tc.WidthF = 100;
            }
            else
            {
                //tc.Text = dtDetail.Columns[i].ColumnName.Replace("x", "");
                tc.Text = dtDetail.Columns[i].ColumnName.Substring(1);
            }
            tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
            tc.BackColor = Color.LightGray;
            //tc.Angle = 90;
            tr.Cells.Add(tc);
        }
        xtBD.Rows.Add(tr);
        
        for (int i = 0; i < colCaptions.Length; i++)
        {
            tr = new XRTableRow();
            tc = new XRTableCell();
            tc.Text = colCaptions[i];
            if (i > 0)
                tc.BorderColor = Color.LightGray;
            tc.WidthF = 270;
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
            tc.Font = new System.Drawing.Font(this.Font.FontFamily,8f );
            tc.Padding = new DevExpress.XtraPrinting.PaddingInfo(1,1,1,1);
            tr.Cells.Add(tc);            

            for (int j = 0; j < dtDetail.Columns.Count+1 ; j++)
            {
                tc = new XRTableCell();
                tc.WidthF = cellWidth;
                tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
                if (i < 1)
                {
                    if (j == dtDetail.Columns.Count)
                    {
                        tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
                        tc.BackColor = Color.LemonChiffon;
                        tc.BeforePrint += new PrintEventHandler(cell_BeforePrint);
                        tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.Top");

                    }
                    else
                    {
                        //tc.Text = DetailBand.Report.GetCurrentColumnValue(dtDetail.Columns[j].ColumnName).ToString();
                        string currentColName = dtDetail.Columns[j].ColumnName;
                        tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style." + currentColName);
                    }                        
                }
                else
                    tc.BorderColor = Color.LightGray;

                if (j == dtDetail.Columns.Count)
                    tc.WidthF = 100;

                tr.Cells.Add(tc);
            }

            xtBD.Rows.Add(tr);
        }

        xtBD.EndInit();
        xtBD.BeforePrint += xtBD_BeforePrint;
    }

    void xtBD_BeforePrint(object sender, PrintEventArgs e)
    {        
        DataRow[] YabanciEtiketRows = null;
        int YabanciEtiket = 0;
        try
        {   
            string idx = DetailBand.Report.GetCurrentColumnValue("idx").ToString();
            YabanciEtiketRows = oMyData.Tables["Table2"].Select("idx=" + idx);
            YabanciEtiket = YabanciEtiketRows.Length;
            while (xtBD.Rows.Count>7)
            {
                xtBD.Rows[7].Dispose();
            }
            
        }
        catch (Exception)
        {

        }

        if (YabanciEtiket > 0)
        {
            int cellWidth = dtDetail.Columns[0].ColumnName.Length * 20 < 90 ? 90 : dtDetail.Columns[0].ColumnName.Length * 20;
            XRTableRow tr;
            XRTableCell tc;
            for (int i = 0; i < YabanciEtiketRows.Length; i++)
            {
                tr = new XRTableRow();
                tr.Name = "YabanciEtiket"+i.ToString();
                tr.BeforePrint += tr_BeforePrint;

                tc = new XRTableCell();
                tc.BorderColor = Color.LightGray;
                tc.Text = YabanciEtiketRows[i]["YabanciEtiket"].ToString();
                tc.WidthF = 270;
                tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
                tc.Font = new System.Drawing.Font(this.Font.FontFamily, 8f);
                tc.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1);
                tr.Cells.Add(tc);

                for (int j = 0; j < dtDetail.Columns.Count + 1; j++)
                {
                    tc = new XRTableCell();
                    tc.WidthF = cellWidth;
                    tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
                    if (j == dtDetail.Columns.Count)
                    {
                        tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
                        //tc.BackColor = Color.LemonChiffon;
                        tc.BeforePrint += new PrintEventHandler(cell_BeforePrint);
                        tc.Text = YabanciEtiketRows[i]["TopYabanciEtiket"].ToString();

                    }
                    else
                    {
                        string currentColName = dtDetail.Columns[j].ColumnName.Replace('x', 'y');
                        tc.Text = YabanciEtiketRows[i][currentColName].ToString();
                    }

                    tc.BorderColor = Color.LightGray;
                    if (j == dtDetail.Columns.Count)
                        tc.WidthF = 100;
                    tr.Cells.Add(tc);
                }
                xtBD.Rows.Add(tr);
            }
            xtBD.EndInit();
        }
    }

    void tr_BeforePrint(object sender, PrintEventArgs e)
    {
        //string Message = DetailBand.Report.GetCurrentColumnValue("YabanciEtiket").ToString();
        string str = ((XRTableRow)sender).Cells[0].Text;
        foreach (XRTableCell cell in ((XRTableRow)sender))
        {
            if (str == "")
            {
                cell.BorderColor = Color.White;                
            }
            else
            {
                cell.BorderColor = Color.LightGray;
            }
        }
        //XRTableCell tc = new XRTableCell();
        //tc.BorderColor = Color.LightGray;
        //tc.Text = GetCurrentColumnValue("YabanciEtiket").ToString();
        //tc.WidthF = 270;
        //tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
        //tc.Font = new System.Drawing.Font(this.Font.FontFamily, 8f);
        //tc.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1);
        //tc.BeforePrint += new PrintEventHandler(cell_BeforePrint);
        //((XRTableRow)sender).Cells.Add(tc);

        //for (int j = 0; j < dtDetail.Columns.Count + 1; j++)
        //{
        //    tc = new XRTableCell();
        //    tc.WidthF = cellWidth;
        //    tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
        //    if (j == dtDetail.Columns.Count)
        //    {
        //        tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
        //        tc.BackColor = Color.LemonChiffon;
        //        tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.TopYabanciEtiket");

        //    }
        //    else
        //    {
        //        tc.Text = DetailBand.Report.GetCurrentColumnValue(dtDetail.Columns[j].ColumnName).ToString();
        //        string currentColName = dtDetail.Columns[j].ColumnName.Replace('x', 'ilkAyrim');
        //        tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style." + currentColName);
        //    }
        //    tc.BorderColor = Color.LightGray;
        //    if (j == dtDetail.Columns.Count)
        //        tc.WidthF = 100;
        //    ((XRTableRow)sender).Cells.Add(tc);
        //}

        //xtBD.Rows.Add(((XRTableRow)sender));
    }

    private void CreateGarniTable(int GarniAdedi)
    {
        xtGarni.BeginInit();
        xtGarni.Rows.Clear();

        int cellWidth = 270;
        float availableSpace = tblDetayBaslik.WidthF - BDWidth;
        if (!(cellWidth * (GarniAdedi + 1 ) <= availableSpace))
        {
            cellWidth = Convert.ToInt16((availableSpace-10) / (GarniAdedi + 1 ));
        }
       
        

        xtGarni.WidthF = cellWidth * (GarniAdedi + 1  );

        xtGarni.Borders = DevExpress.XtraPrinting.BorderSide.All;
        XRTableRow tr;

        tr = new XRTableRow();

        #region Başlık
        XRTableCell tc = new XRTableCell();
        tc.WidthF = cellWidth;
        tc.Text = Eng?"Main Fabric":"Beden";
        tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
        tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
        tc.BackColor = Color.Gainsboro;
        tr.Cells.Add(tc);

        for (int i = 0; i < GarniAdedi; i++)
        {
            tc = new XRTableCell();
            tc.WidthF = cellWidth;
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            tc.Text = Eng ? "Trim" + (i + 1).ToString() : "Garni" + (i + 1).ToString();
            tc.Font = new System.Drawing.Font(this.Font, FontStyle.Bold);
            tc.BackColor = Color.Gainsboro;
            tr.Cells.Add(tc);
        }

       

        #endregion
        xtGarni.Rows.Add(tr);

        tr = new XRTableRow();
        #region ProductName
        for (int i = 0; i < GarniAdedi + 1; i++)
        {
            tc = new XRTableCell();
            tc.WidthF = cellWidth;
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            tc.Font = new Font(this.Font.FontFamily, 9f);
            if (i < 1)
                tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.AnaBeden");
            else
                tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.Garni" + i.ToString());
            //tc.BeforePrint += new PrintEventHandler(cell_BeforePrint);
            tc.Multiline = true;
            tr.Cells.Add(tc);
        }

        
        #endregion
        xtGarni.Rows.Add(tr);
        tr = new XRTableRow();
        //tr.HeightF = tr.WidthF = 300;
        #region Scan
        for (int i = 0; i < GarniAdedi + 1; i++)
        {
            tc = new XRTableCell();
            tc.WidthF = cellWidth;
            tc.HeightF = cellWidth;
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;

            XRPictureBox xpic = new XRPictureBox();
            xpic.Dpi = 254;

            xpic.SizeF = new System.Drawing.SizeF(cellWidth, cellWidth);

            xpic.Borders = DevExpress.XtraPrinting.BorderSide.None;

            xpic.Sizing = DevExpress.XtraPrinting.ImageSizeMode.CenterImage;  // CenterImage;

            xpic.DataBindings.Add(new DevExpress.XtraReports.UI.XRBinding("Image", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.Photo" + i.ToString()));
            tc.Controls.Add(xpic);
            tc.BorderColor = Color.LightGray;
            tr.Cells.Add(tc);
        }
        #endregion
        xtGarni.Rows.Add(tr);

        tr = new XRTableRow();
        #region Code
        for (int i = 0; i < GarniAdedi + 1; i++)
        {
            tc = new XRTableCell();
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
            tc.Font = new Font(this.Font.FontFamily, this.Font.Size , FontStyle.Regular);
            tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.Code" + i.ToString(), "{0:n}");
            if (i == 0)
                tc.BeforePrint += cell_BeforePrint3;
            else
                tc.BeforePrint += cell_BeforePrint4;

            tr.Cells.Add(tc);

            //float fontf = Eng ? 0.7F : 0.8F;
            //tc = new XRTableCell();
            //tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
            //tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf, FontStyle.Bold);
            //tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            //tc.Text = Eng ? "Width" : "En :";
            //tr.Cells.Add(tc);

            //tc = new XRTableCell();
            //tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            //tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf);
            //tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            //tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.En" + i.ToString(), "{0:n}");
            //tr.Cells.Add(tc);

            //tc = new XRTableCell();
            //tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
            //tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf, FontStyle.Bold);
            //tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            //tc.Text = Eng ? "Cons" : "BM :";
            //tr.Cells.Add(tc);

            //tc = new XRTableCell();
            //tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            //tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf);
            //tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            //tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.BM" + i.ToString());
            //tr.Cells.Add(tc);
        }
        #endregion
        xtGarni.Rows.Add(tr);

        tr = new XRTableRow();
        #region En
        for (int i = 0; i < GarniAdedi + 1; i++)
        {
            float fontf = Eng ? 0.7F : 0.8F;
            //tc = new XRTableCell();
            //tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
            //tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf, FontStyle.Bold);
            //tc.Borders = DevExpress.XtraPrinting.BorderSide.All;
            //tc.Text = Eng ? "Width" : "En :";
            //tr.Cells.Add(tc);

            tc = new XRTableCell();
            tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
            tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf);
            tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
            tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.En" + i.ToString(), "En : {0:n}");
            tr.Cells.Add(tc);
        }
        #endregion
        xtGarni.Rows.Add(tr);

        //tr = new XRTableRow();
        //#region GenelToplam
        //for (int i = 0; i < GarniAdedi + 1; i++)
        //{
        //    float fontf = Eng ? 0.7F : 0.8F;
            
        //    tc = new XRTableCell();
        //    tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        //    tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf, FontStyle.Bold);
        //    tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
        //    tc.Text = Eng ? "Need :": "İhtiyaç :";
        //    tr.Cells.Add(tc);

        //    tc = new XRTableCell();
        //    tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
        //    tc.Font = new Font(this.Font.FontFamily, this.Font.Size * fontf);
        //    tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
        //    tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.Req" + i.ToString());
        //    tr.Cells.Add(tc);
        //}
        //#endregion
        //xtGarni.Rows.Add(tr);

        //tr = new XRTableRow();
        //#region BirimMetraj
        //for (int i = 0; i < GarniAdedi + 1; i++)
        //{
        //    tc = new XRTableCell();
        //    tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
        //    tc.Font = new Font(this.Font.FontFamily, this.Font.Size, FontStyle.Bold);
        //    tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
        //    tc.Text = "BM :";
        //    tr.Cells.Add(tc);

        //    tc = new XRTableCell();
        //    tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
        //    tc.Font = new Font(this.Font.FontFamily, this.Font.Size / 1.1F);
        //    tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
        //    tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.BM" + i.ToString(), "{0:n}");
        //    tr.Cells.Add(tc);
        //}
        //#endregion
        //xtGarni.Rows.Add(tr);

        //tr = new XRTableRow();
        //#region GenelToplam
        //for (int i = 0; i < GarniAdedi + 1; i++)
        //{
        //    tc = new XRTableCell();
        //    tc.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
        //    tc.Font = new Font(this.Font.FontFamily, this.Font.Size / 1.1F);
        //    tc.Borders = DevExpress.XtraPrinting.BorderSide.None;
        //    tc.DataBindings.Add("Text", null, "xWBHeader.FK_xWBDetail_xWBHeader_style.Top" + i.ToString(), "{0:n}");
        //    tr.Cells.Add(tc);
        //}
        //#endregion
        //xtGarni.Rows.Add(tr);
        
        xtGarni.EndInit();
    }
    
}
